import { NestFactory } from '@nestjs/core'
import {AppModule} from "./app.module";
import {CustomExceptionFilters} from "./custom-exception.filter";

const bootstrap = async () =>{
    const app = await NestFactory.create(AppModule)
    // 1.异常过滤器可以设置全局的
    // app.useGlobalFilters(CustomExceptionFilters)
    await app.listen(8089)
}
bootstrap();
